<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/Function_index.php");
$nid = isset($_GET['nid'])?intval($_GET['nid']):0;
if(!$nid){
	echo "<script>window.location.href='newslist.php';</script>";exit;
}
$info = ninfo($_GET['nid']);
if(!$info){
	echo "<script>window.location.href='newslist.php';</script>";exit;
}
$tpl->assign("info",$info);
$tpl->assign('results',$results);
$tpl->show("news");
?>